package calculator.ast;

import javapop.framework.parser.expr.ExprNode;
import javapop.framework.parser.expr.UnaryNode;

public abstract class UnaryOp extends Expr implements UnaryNode {
	private ExprNode operand;
	private int prio;
	
	protected UnaryOp() {
		this.prio = -1;
		operand = null;
	}
	
	@Override
	public Expr getOperand() {
		return (Expr) operand;
	}

	@Override
	public void setOperand(ExprNode operand) {
		this.operand = operand;
	}

	@Override
	public int getPrio() {
		return prio;
	}

	@Override
	public void setPrio(int prio) {
		this.prio = prio;
	}
		
}
